package com.fxu.gen;

import com.fxu.gen.enums.TplEnum;
import com.fxu.tpl.entity.Table;

import java.io.File;

/**
 * Entity枚举字段类
 */
public final class LimitEnum extends Base {
	private String destFileName;

	public LimitEnum(Table table, File destFile) {
		super(table, TplEnum.Enums, destFile);
		destFileName = destFile.getName();
	}
	
	@Override
    public String doReplace() {
		String fileTxt = super.doReplace();
		return fileTxt.replace(this.tableBean + "TypeEnum", destFileName.replace(".java", ""));
	}
}
